<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String ownerId = request.getParameter("ownerId");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="zh-CN" />
<title>用户信息上传- 华润</title>
<link rel="stylesheet" type="text/css"
	href="jquery-easyui-1.5.4.2/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css"
		href="jquery-easyui-1.5.4.2/themes/icon.css">
		<link rel="stylesheet" type="text/css"
			href="jquery-easyui-1.5.4.2/demo/demo.css">
			<script type="text/javascript"
				src="jquery-easyui-1.5.4.2/jquery.min.js"></script>
			<script type="text/javascript"
				src="jquery-easyui-1.5.4.2/jquery.easyui.min.js"></script>
			<script type="text/javascript"
				src="jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"></script>
</head>
	<body>
		<table>
		<tr>
			<td>
				<a href="javascript:void(0)" class="easyui-linkbutton" onclick="upload()">上传</a>
			</td>
		</tr>
	</table>
		<div class="easyui-layout" data-options="fit:true">
			<div data-options="region:'west',split:true" style="width:300px;padding:10px">
				<ul id="tt" class="easyui-tree" data-options="url:'getAllCity',method:'post',animate:true,checkbox:true"></ul>
			</div>
			<div data-options="region:'center'" style="padding:10px">
				<input id="tb" class="easyui-textbox"  data-options="multiline:true" style="width:95%;height:530px;padding:12px">
			</div>
		</div>
	
	<script>
	function upload(){
    	var nodes = $('#tt').tree('getChecked');
		var s = '';
		for(var i=0; i<nodes.length; i++){
			if (s != '') s += '#';
			s += nodes[i].id;
		}
		if(s==''){
			alert("请选择店铺!");
			return;
		}
		//alert(s);
		var tbText = $('#tb').textbox('getText');
		//alert(tbText);
    	var path = "uploadUser";  
		$.ajax({  
			url : path,  
			type : "post",
			data : {
				storeCode : s,
				tbText:tbText
			},  
			dataType : "json",  
			success : function(datas) {
				//$('#tb').dialog('close');
				window.parent.closeDialog();
			}  
		}); 
    }
	</script>
</body>






